package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xmy.cultivate.respons.FlowTeacherRs;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 教师权限表
 * </p>
 *
 * @author hpiggy
 * @since 2025-05-10
 */
@Data
@TableName("auth_allot_teacher")
@ApiModel(value = "AuthAllotTeacher对象", description = "教师权限表")
public class AuthAllotTeacher implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("类型：1每天   2指定时间")
    private Integer type;

//    @ApiModelProperty("开始时间")
//    private String startDate;
//
//    @ApiModelProperty("结束时间")
//    private String endDate;

    @ApiModelProperty("开始时间")
    private LocalDateTime startDate;

    @ApiModelProperty("结束时间")
    private LocalDateTime endDate;

    @ApiModelProperty("type为2时，周一1，周二2，周三3，周四4，周五5，周六6，周日0  多个用逗号隔开")
    private String weeks;

    private Integer deleted;

    @ApiModelProperty("教师id")
    private Long teacherId;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(exist = false)
    @ApiModelProperty("教师")
    private String teacherName;

    @TableField(exist = false)
    @ApiModelProperty("功能权限")
    private List<AuthAllotTeacherProjects> authAllotTeacherProjectsList;
//    private AuthAllotTeacherProjects authAllotTeacherProjects;

    @TableField(exist = false)
//    private List<AuthAllotTeacherSchool> authAllotTeacherSchoolList;
    private AuthAllotTeacherSchool authAllotTeacherSchool;


}
